package com.baidumap.administrator.happystudy.base;

import android.content.Context;
import android.os.Bundle;

import com.ab.base.BaseActivity;

/**
 * 描述：app的Activity基类
 * 作者：徐小星 on 2016/7/20 17:05
 * 邮箱：2235445233@qq.com
 */

public class AppBaseActivity extends BaseActivity {


    //public AbTitleBar mAbTitleBar = null;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    public void doBusiness(Context mContext) {
        super.doBusiness(mContext);
    }

    /**
     * 判断是否登录
     *
     * @return
     */
    public boolean isLogin() {
        return sHelper.getBoolean(Constant.IS_LOGIN);
    }

    @Override
    public void onBackPressed() {
        super.onBackPressed();
        finish();
    }

}
